<?xml version="1.0"?>

<f:view
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
>
	<h:head />
	<h:body>
		<h:form>
			<p:messages id="bookActionNotifications" showDetail="true" autoUpdate="true"/>
			<p:message for="bookActionNotifications"/>
			<h:outputText value="Book Title : " />
			<p:inputText id="bookName" type="text" value="#{library.libraryBackingBean.bookTitle}" >
			</p:inputText><br />
			<h:outputText value="Author Name : " />
			<p:inputText id="author" type="text" value="#{library.libraryBackingBean.author}"/><br />
			<p:commandButton value="Save" actionListener="#{library.addBook}" ajax="false"/>
		</h:form>
	</h:body>
</f:view>